/**
  ******************************************************************************
* @file				bsp_adc.h
* @Software			MDK V5
* @Target 			MM32F533
* @author			ou_teki
* @date				2024-0420
  ******************************************************************************
  */

#ifndef		__BSP_ADC_H__
#define		__BSP_ADC_H__

#ifdef __cplusplus
extern "C" {
#endif

/* Files include */
#include "stdint.h"
#include "stdbool.h"
#include "stdlib.h"
#include "string.h"
#include "stdio.h"

#include  "hal_rcc.h"
#include  "hal_gpio.h"
#include  "hal_adc.h"



#define		ADC_RV1_PORT    GPIOA
#define		ADC_RV1_PIN_1		GPIO_Pin_1

#define		ADC_RV2_PORT    GPIOA
#define		ADC_RV2_PIN   GPIO_Pin_3

#define		ADC_RV3_PORT 		GPIOA
#define		ADC_RV3_PIN		GPIO_Pin_4


typedef   struct
{
  uint32_t        adc_pin;
  ADC_TypeDef     *adc_device;
  uint32_t        adc_channel;
  ADC_InitTypeDef adc_init;  
  uint8_t         adc_data[10];
}ADC_CONFIG_st;

void  BSP_AdcInit(void);

#ifdef __cplusplus
}
#endif

#endif /* __BSP_ADC_H__ */
/*lint -restore */
